Skip to content

SOLR-18269: Restore -c as a no-op function for bin/solr start#4473

Merged
epugh merged 4 commits into
apache:mainfrom
epugh:SOLR-18269
Jun 3, 2026
Merged

SOLR-18269: Restore -c as a no-op function for bin/solr start#4473
epugh merged 4 commits into
apache:mainfrom
epugh:SOLR-18269

Conversation

@epugh
Copy link
Copy Markdown
Contributor

@epugh epugh commented May 28, 2026

https://issues.apache.org/jira/browse/SOLR-18269

Description

Restore -c as no-op function to bin/solr start.

Solution

Burps out a mention. I used claude. Added a bats test.

Tests

bats.

Copy link
Copy Markdown
Contributor

@janhoy janhoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I think it is unnecessary to print the -c flag in the --help docs, as it won't help a single soul 🤣

Comment thread solr/bin/solr Outdated
echo ""
echo " -c or --cloud No-op. Solr starts in cloud mode by default; this flag is accepted for"
echo " compatibility with previous Solr scripts. Cannot be combined with --user-managed."
echo ""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need to mention the flag if it's noop? We could leave it an expert stealth option?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

humm... yeah, i went back and forth on it... was thinking that having this magic variable not be documented is worse? but I can see not having the it documented but still giving the warning. and the help is getting so long!

@janhoy
Copy link
Copy Markdown
Contributor

janhoy commented May 29, 2026

Add a changelog?

epugh added 3 commits May 30, 2026 09:11
Signed-off-by: Eric Pugh <epugh@opensourceconnections.com>
@epugh epugh merged commit c2123ca into apache:main Jun 3, 2026
6 checks passed
epugh added a commit that referenced this pull request Jun 3, 2026
Signed-off-by: Eric Pugh <epugh@opensourceconnections.com>
(cherry picked from commit c2123ca)
epugh added a commit that referenced this pull request Jun 3, 2026
Signed-off-by: Eric Pugh <epugh@opensourceconnections.com>
(cherry picked from commit c2123ca)
@HoustonPutman
Copy link
Copy Markdown
Contributor

Thanks! Let's get a 10.1 out there soon to fix the operator support story!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants